#include "thirdparty/logging/logger.h"
namespace logging {

const char* g_level_str[] = {
  "TRACE ",
  "DEBUG ",
  "INFO  ",
  "WARN  ",
  "FATAL "
};

OutputLog Logger::output_function_ = [] (char* buf, uint32_t len) {
  fprintf(stdout, "%s", buf);
};

LoggerLevel Logger::level_ = LoggerLevel::TRACE;

thread_local uint64_t Logger::last_seconds_ = 0; // from 1970 snds
thread_local char Logger::time_str_[64];    //
thread_local int Logger::thread_id_ = 0;
thread_local char Logger::thread_idstring_[32];
thread_local uint32_t  Logger::thread_id_len_ = 0;

}
